<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<title>用户管理-新增用户</title>
<link rel="stylesheet"
	href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css"
	integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N"
	crossorigin="anonymous">
<script
	src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"
	integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
	crossorigin="anonymous"></script>
<script
	src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"
	integrity="sha384-Fy6S3B9q64WdZWQUiU+q4/2Lc9npb8tCaSX9FK7E8HnRr0Jz8D6OP9dO5Vg3Q9ct"
	crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs4.min.js"></script>
</head>
<body>

<nav class="navbar navbar-expand-lg navbar-light bg-light mb-2">
  <a class="navbar-brand" href="${ctx}">首页</a>
 <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
    <div class="navbar-nav">
      <a class="nav-link active" href="${ctx}/user/list">用户管理</a>
      <a class="nav-link" href="${ctx}/user/list">菜单管理</a>
      <a class="nav-link" href="${ctx}/user/list">角色管理</a>
    </div>
</nav>
	<form method="post" action="${ctx}/user/add" name="userForm">
		<div class="card">
			<div class="card-header">新增用户</div>
			<div class="card-body">
				<p class="card-text">
				<div class="form-group">
					<label for="account">用户账号</label> <input type="text"
						class="form-control" id="account" name="account">
				</div>
				<div class="form-group">
					<label for="password">用户密码</label> 
					<input type="password"
						class="form-control" id="password" name="password">
				</div>
				<div class="form-group">
					<label for="remark">说明</label>
					<textarea class="form-control" rows="10" cols="80" id="remark" name="remark"></textarea>
				</div>

				</p>
				<button type="button" onclick="window.open('${ctx}/user/list','_self')"
					class="btn btn-danger">返回</button>
				<button type="reset" class="btn btn-primary">重置</button>
				<button type="submit" class="btn btn-success">新增</button>
			</div>
		</div>
	</form>
	<script>
      $('#remark').summernote({
        tabsize: 2,
        height: 100
      });
    </script>
</body>
</html>